package com.netease.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.UUID;

import org.apache.commons.lang3.StringUtils;

public class Commodity implements Serializable{
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -6721646973467727350L;
	private String id;
	private String title;
	private String summary;
	private String content;
	private String picture;
	private int remainningAmount;
	private int soldAmount = 0;
	private double price=99999;
	private Date createTime;
	private Date updateTime;
	

	
	public String getId() {
		if (!StringUtils.isBlank(this.id))
		{
			return this.id;
		}
		return UUID.randomUUID().toString();
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getSummary() {
		return summary;
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}
	
	public String getPicture() {
		return picture;
	}
	public void setPicture(String picture) {
		this.picture = picture;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	

	public int getRemainningAmount() {
		return remainningAmount;
	}
	public void setRemainningAmount(int remainningAmount) {
		this.remainningAmount = remainningAmount;
	}
	public int getSoldAmount() {
		return soldAmount;
	}
	public void setSoldAmount(int soldAmount) {
		this.soldAmount = soldAmount;
	}

	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
}